import axios from 'axios';

export async function getLayout(params: any) {
  return axios('/_api/produce-dashboard/getLayout', {
    params,
  });
}

export async function getTodayOutput() {
  return axios('/_api/produce-dashboard/getTodayProduce');
}

export async function getTodayPass() {
  return axios('/_api/produce-dashboard/getTodayPass');
}

export async function getTodayWork() {
  return axios('/_api/produce-dashboard/getTodayWork');
}

export async function getOee() {
  return axios('/_api/produce-dashboard/getOee');
}
export async function getCoreMaterials() {
  return axios('/_api/produce-dashboard/getCoreMaterials');
}

export async function getAnalysis() {
  return axios('/_api/produce-dashboard/getAnalysis');
}
export async function getExceptionMessage() {
  return axios('/_api/produce-dashboard/getExceptionMessage');
}
